package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"srv/tiktokclient"
)

type ServiceContext struct {
	Config    config.Config
	TiktokSrv tiktokclient.Tiktok
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		TiktokSrv: tiktokclient.NewTiktok(zrpc.MustNewClient(c.TiktokSrv)),
	}
}
